# 设计一个闹钟类
class Clock:
    id = None
    price = None

    def ring(self):
        import os
        os.system("say --voice=\"Sin-ji\" 您好，早上好。")


# 构建两个闹钟对象让其工作
clock1 = Clock()
clock1.id = "003032"
clock1.price = 19.99

print(f"闹钟ID: {clock1.id}，价格为: {clock1.price}")
clock1.ring()

clock2 = Clock()
clock2.id = "003033"
clock2.price = 21.99

print(f"闹钟ID: {clock2.id}，价格为: {clock2.price}")
clock2.ring()


